/**
 * 
 */
package com.gr.staffpm.pages.schedule.model;

import java.io.Serializable;


/**
 * @author Graham Rhodes 29 Mar 2011 19:13:19
 */
public class Calendar implements Serializable {

    private static final long serialVersionUID = 1L;
    private int id = 0;
    private String name = "";

    public Calendar(int id) {
        this(id, "StaffPM Tasks");
    }

    public Calendar(int id, String name) {
        this.id = id;
        this.setName(name);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof Calendar) {
            Calendar other = (Calendar) obj;
            return (id == other.getId() && name.equals(other.getName()));

        }
        return false;
    }

}
